package test00.tx03;

import java.util.Arrays;
import java.util.Comparator;

public class MainTest01 {
    public static void main(String[] args) {
        Integer[] arr = {1,2,3,10,4,5,6,7,8,9};
        Arrays.sort(arr);
        for (int i = 0; i < arr.length / 2; i++) {

            int temp = arr[i];

            arr[i] = arr[arr.length - 1 - i];

            arr[arr.length - 1 - i] = temp;

        }
        System.out.println(Arrays.toString(arr));
    }
}
